import axios from './http';
import {MASTER_URI} from '../uitls/ajaxUrl';
/**
 * Created by luqidong on 2017/12/25.
 */
/**
 * 获取流水tabs
 * @returns {*}
 */
export function getDetailsTabsR() {
    return axios.get(`${MASTER_URI}/ml/account/listType`);
}
/**
 * 流水分类
 * @param page
 * @param interval
 * @param code
 * @param token
 * @returns {*}
 */
export function getDetailsInfoR({page, interval, code = '', token}) {
    if(code) {
        return axios.get(`${MASTER_URI}/ml/account/listByCode?code=${code}&interval=${interval}&page=${page}&pageSize=20`, {
            headers: {
                token
            }
        });
    }
    return axios.get(`${MASTER_URI}/ml/account/listByCode?interval=${interval}&page=${page}&pageSize=20`, {
        headers: {
            token
        }
    });

}